<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">

            <div class="layui-card layui-tab  layui-tab-brief" lay-filter="linktab">
                <ul class="layui-tab-title">
                    <li class="layui-this">系统</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-card">
                            <div class="layui-card-header">系统参数配置</div>
                            <div class="layui-card-body" pad15>
                                <div class="layui-form layui-form-pane">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label"><span style="color:#f90c05;">*</span>网站名称</label>
                                        <div class="layui-input-block">
                                            <input type="text" placeholder="请输入网站名称"
                                                   name="site_name"
                                                   value="{:array_get($system,'site_name')}"
                                                   lay-verify="required"
                                                   class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-input-block">
                                            <button class="layui-btn" lay-submit lay-filter="{$lay_btn}">确认修改</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

<script>
    layui.use(['index', 'form'], function () {
        const admin = layui.admin;
        const form = layui.form;
        form.render();

        form.on('submit({$lay_btn})', function (obj) {
            admin.req({
                url: "{:url('setting/editSystem')}",
                type: 'post',
                data: obj.field,
                done: function (res) {
                    layer.msg("提交成功", {icon: 1});
                }
            });

        });
    });
</script>
